package com.fangfang.bean.home;

import com.common.ui.brvah.entity.MultiItemEntity;

public class ItemListBean implements MultiItemEntity {
    public static final int TYPE_ONR = 1;//标题栏文字描述
    public static final int TYPE_TWO = 2;//标题栏文字描述(带视频列表)
    public static final int TYPE_THREE = 3;//图片集
    public static final int TYPE_FOUR = 4;//频第一种展示形式（全屏）
    public static final int TYPE_FIVE = 5;//视频第二种展示形式（半屏）
    private TextCardBean textCardBean;
    private PictureFollowCardBean pictureFollowCard;
    private FollowCardBean followCardBean;
    private VideoSmallCardBean videoSmallCardBean;
    private SquareCardCollectionBean squareCardCollectionBean;
    private String type = "";
    private int multiItemType = 1;//默认第一种布局

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public TextCardBean getTextCardBean() {
        return textCardBean;
    }

    public void setTextCardBean(TextCardBean textCardBean) {
        this.textCardBean = textCardBean;
    }

    public PictureFollowCardBean getPictureFollowCard() {
        return pictureFollowCard;
    }

    public void setPictureFollowCard(PictureFollowCardBean pictureFollowCard) {
        this.pictureFollowCard = pictureFollowCard;
    }

    public FollowCardBean getFollowCardBean() {
        return followCardBean;
    }

    public void setFollowCardBean(FollowCardBean followCardBean) {
        this.followCardBean = followCardBean;
    }

    public VideoSmallCardBean getVideoSmallCardBean() {
        return videoSmallCardBean;
    }

    public void setVideoSmallCardBean(VideoSmallCardBean videoSmallCardBean) {
        this.videoSmallCardBean = videoSmallCardBean;
    }

    public SquareCardCollectionBean getSquareCardCollectionBean() {
        return squareCardCollectionBean;
    }

    public void setSquareCardCollectionBean(SquareCardCollectionBean squareCardCollectionBean) {
        this.squareCardCollectionBean = squareCardCollectionBean;
    }

    @Override
    public int getItemType() {
        switch (type) {
            case "textCard":
                multiItemType = TYPE_ONR;
                break;
            case "squareCardCollection":
                multiItemType = TYPE_TWO;
                break;
            case "pictureFollowCard":
                multiItemType = TYPE_THREE;
                break;
            case "followCard":
                multiItemType = TYPE_FOUR;
                break;
            case "videoSmallCard":
                multiItemType = TYPE_FIVE;
                break;
            default:break;
        }
        return multiItemType;
    }
}
